/*
 * @Author: 陈宇 975155172@qq.com
 * @Date: 2024-08-14 10:43:44
 * @LastEditors: 陈宇 975155172@qq.com
 * @FilePath: \blog-web\src\router\routes\modules\blog.ts
 * @Description: 路由配置列表
 */
import { DEFAULT_LAYOUT } from '../base';
import { type AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/blog',
  name: 'Blog',
  component: DEFAULT_LAYOUT,
  redirect: '/blog/home',
  meta: {
    requiresAuth: false,
    ignoreCache: true
  },
  children: [
    {
      path: 'home',
      name: 'BlogHome',
      component: () => import('@/views/home/index.vue'),
      meta: {
        requiresAuth: false,
        ignoreCache: true
      },
    },
    {
      path: 'about', // The midline path complies with SEO specifications
      name: 'BlogAbout',
      component: () => import('@/views/AboutView.vue'),
      meta: {
        requiresAuth: false,
        ignoreCache: true,
        roles: ['*'],
      },
    }
  ],
};

export default LIST;
